<?php
/**
 * Created by PhpStorm.
 * User: xlosy
 * Date: 2018/3/25
 * Time: 19:04
 */

namespace app\index\model;


use think\Model;

class Subclass extends Model
{
    public function get_sub_class_list($cataLog_id){
        $return = Subclass::all(['isUse'=> '1','cataLog_id'=>$cataLog_id]);
        return $return;
    }

    public function get_sub_class_list_by_id($id){
        $return = Subclass::get($id);
        return $return;
    }
}